package com.rs;
import java.awt.BorderLayout;
import java.awt.FlowLayout;

import javax.swing.JButton;
import javax.swing.JDialog;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;

import com.rs.util.ImagePanel;

import java.awt.Component;
import javax.swing.Box;
import java.awt.Dimension;
import javax.swing.JLabel;
import java.awt.Font;

public class login extends JDialog {
	private final static login dialog = new login();
	
	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		try {
			dialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
			dialog.setVisible(true);
		} catch (Exception e) {
			e.printStackTrace();
			
		}
	}

	/**
	 * Create the dialog.
	 */
	public login() {
		final ImagePanel imagePanel = new ImagePanel(360,200, "0.jpg");
		setContentPane(imagePanel);
		setResizable(false);
		setSize(360, 200);
		this.setLocationRelativeTo(null);
		setAlwaysOnTop(true);
		getContentPane().setLayout(null);
		imagePanel.setLayout(null);
		
		JLabel label = new JLabel("数据加载中···");
		label.setBounds(133, 102, 89, 15);
		imagePanel.add(label);
	}
	public static void close() {
		dialog.dispose();
	}
	
}
